<?php
/**
 * @file single.php
 * @package V2
 * @subpackage 
 * @version $id: 0.1 UTF-8 2009-8-5 下午09:59:01 $
 * @author LD King (mifunny.info)
 * @copyright Copyright (c) 2007 - 2009 MiFunny China Inc. (http://mifunny.info)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php wp_title('|', true, 'right'); ?>七心导购网_7heart.com</title>
<meta name="robots" content="index,follow" />
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<meta name="keywords" content="<?php  echo getKeywords($post->ID); ?>" />
<link rel="stylesheet" href="<?php echo WP_SITEURL; ?>/v2/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo WP_SITEURL; ?>/v2/single.css" type="text/css" media="screen" />
<link rel="shortcut icon" type="image/x-ico" href="<?php echo WP_SITEURL; ?>/v2/images/favicon.ico" />

<?php  if ( in_category( 20, $post->ID ) ){ ?>
<meta name="description" content="<?php the_excerpt(); ?>" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1.3.2");</script>
<script type="text/javascript" src="<?php echo WP_SITEURL; ?>/v2/js/single.js"></script>
<?php } wp_head(); ?>
</head>
<body>

<div class="header" style="position: relative;">
<div class="headtop"><!-- logo#导航 -->
	<div class="headlogo">
		<a href="<?php echo WP_SITEURL; ?>" alt="<?php bloginfo('name'); ?>"><img src="<?php echo WP_SITEURL; ?>/v2/images/logo.gif" alt="<?php bloginfo('name'); ?>" /></a>
	</div>
	<div class="headright">
		<div class="headtopuser"><!-- 会员 -->
			<div class="right">您好，欢迎访问<?php bloginfo('name'); ?>！ <a href="http://7heart.5d6d.com/logging.php?action=login">登录</a> | <a href="http://7heart.5d6d.com/registerbbs.php">注册</a> | 
				<a href="<?php echo WP_SITEURL; ?>/shops/"><img src="<?php echo WP_SITEURL; ?>/v2/images/v4_stor_btn.gif" alt="淘宝 皇冠店铺" align="absmiddle"></a></div>
		</div><!--会员 -->
		
<div class="chlink"><!-- 栏目导航 -->
	<div class="chtab1" style="width: 55px;" id="divDefault"><span><a href="<?php echo WP_SITEURL; ?>/">首 页</a></span></div>
	<div class="chtab2" style="width: 73px;" id="divAllProduct"><span><a href="<?php echo WP_SITEURL; ?>/category/cornucopia/">商品大全</a></span></div>
	<div class="chtab2" style="width: 73px;" id="divShoppingDoor"><span><a href="<?php echo WP_SITEURL; ?>/category/cornucopia/grocer/">小七杂货铺</a></span></div>
	<div class="chtab2" style="width: 73px;"><span><a href="<?php echo WP_SITEURL; ?>/category/cornucopia/hot/" style="color: rgb(235, 97, 0);"><strong>热门推荐</strong></a></span></div>
	<div class="chtab2" style="width: 73px;" id="divPromotion"><span><a href="<?php echo WP_SITEURL; ?>/category/special/">专题活动</a></span></div>
	<div class="chtab2" style="width: 73px;" id="divForum"><span><a href="http://7heart.5d6d.com/" title="网购论坛、淘气论坛">淘气论坛</a></span></div>
	<div class="chright"><a href="http://7heart.5d6d.com/">网购指南</a> | 
		<a href="<?php echo WP_SITEURL; ?>/category/special/brand/" style="color: rgb(235, 94, 0);">潮人品牌</a> | 
		<a href="<?php echo WP_SITEURL; ?>/v2/random.php" title="随便逛逛">随便逛逛</a></div>
</div><!--/栏目导航 -->
	</div><!-- .headright -->
</div><!-- .headtop --><!--/logo#导航 -->

<div class="hsch"><!-- 搜索栏 -->
	<div class="hsch1">
	<div class="hsch2">
	<!-- sch -->
	<div class="schinfosearch">
	
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.cn/custom" target="google_window">
<table border="0">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">

</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="www.7heart.com"></input>
<label for="sbi" style="display: none">网上购物，先来七心导购网看看！</label>
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">提交搜索表单</label>
<input type="submit" name="sa" value="Google 搜索" id="sbb"></input>

<input type="radio" name="sitesearch" value="" id="ss0"></input>
<label for="ss0" title="搜索网络"><font size="-1" color="#000000">Web</font></label>
<input type="radio" name="sitesearch" value="www.7heart.com" checked id="ss1"></input>
<label for="ss1" title="搜索 七心导购网"><font size="-1" color="#000000">www.7heart.com</font></label>

</td></tr>
<tr>
<td>&nbsp;</td>
<td nowrap="nowrap">

<input type="hidden" name="client" value="pub-4690622991209395"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="UTF-8"></input>
<input type="hidden" name="oe" value="UTF-8"></input>
<input type="hidden" name="safe" value="active"></input>
<input type="hidden" name="flav" value="0000"></input>
<input type="hidden" name="sig" value="jFFxUWzmDtTRxxng"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</div>

	<!--/sch -->
		<div class="schinfobr">站内热门关键字: 
		<?php 
		$tags = getTags(4);
		foreach ($tags as $tag){
			echo $tag.' | ';
		}
		?>
		</div>
	</div>
	</div>
</div><!-- /搜索栏 -->

<div class="sm"><!-- 频道导航 -->
	<div class="smbg">
	<div class="left">
		<a href="<?php echo WP_SITEURL; ?>/man/" target="_blank">男人频道</a> | 
		<a href="<?php echo WP_SITEURL; ?>/lady/" target="_blank">女人频道</a> | 
		<a href="<?php echo WP_SITEURL; ?>/digital/" target="_blank">数码频道</a> | 
		<a href="<?php echo WP_SITEURL; ?>/baby/" target="_blank">母婴频道</a> | 
		<a href="<?php echo WP_SITEURL; ?>/beauty/" target="_blank">美容频道</a> | 
		<a href="<?php echo WP_SITEURL; ?>/food/" target="_blank">食品频道</a> | 
		<a href="<?php echo WP_SITEURL; ?>/jewelry/" target="_blank">饰品频道</a> | 
		<a href="<?php echo WP_SITEURL; ?>/sports/" target="_blank">运动频道</a>
	</div>
<?php if (!is_single() and !is_page()) { ?>
	<div class="right">
		<?php previous_posts_link('&laquo; 上一页') ?> | <?php next_posts_link('下一页 &raquo;') ?>
	</div>
<?php } ?>	
	</div>
</div><!--/频道导航 -->

</div><!-- .header --><div id="adsHeader"></div>
<!-- header -->

<div id="adsSingleTop">
	<iframe marginwidth="0" marginheight="0" allowtransparency="" src="<?php echo WP_SITEURL; ?>/v2/js/ads-single-top.html" frameborder="0" height="90" width="950" scrolling="no" align="center,center"></iframe>
</div>

<!-- 面包屑 -->
<div class="nav">
	<div class="navleft">
		<a href="<?php echo WP_SITEURL; ?>" title="<?php bloginfo('name'); ?>">首页</a> -&gt; <?php the_category(', ') ?> -&gt; <?php the_title(); ?>
	</div>
	<div class="right">关键字: <?php the_tags( ' ', ', ', ' '); ?></div>
</div>
<!--/面包屑 -->

<div class="v2all">
<!-- 左栏 -->
<div class="bodyleft">

<div class="pshow">
<?php  if ( in_category( 20, $post->ID ) ){   //商品页面
						the_content();
?>
<div id="author">七心楼伙计 <?php the_author_posts_link(); ?> 于 <?php the_time('Y年m月d日 H:i'); ?> 提交;<br />
	宝贝: <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
		<?php the_title(); ?></a></div>
<div id="navigation">
	<div class="left"><?php previous_post_link('&laquo;上一个宝贝 %link') ?></div><br />
	<div class="right"><?php next_post_link('%link 下一个宝贝&raquo;') ?></div>
</div>
</div><!-- pshow -->

<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
	Tooltip();
	DescShow();
	//alert( $("#adsSingleMiddle").html() );
});
//]]>
</script>
<?php  }else {  //以上是商品; 以下是非商品页面
	?>
	<div id="tbkPage">
	<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
		<?php the_title(); ?></a></h1>
	<?php the_content(); ?></div>
<div id="author">七心楼伙计 <?php the_author_posts_link(); ?> 于 <?php the_time('Y年m月d日 H:i'); ?> 提交;<br />
	页面: <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
		<?php the_title(); ?></a></div>
<div id="navigation">
	<div class="left"><?php previous_post_link('&laquo;上一个页面 %link') ?></div><br />
	<div class="right"><?php next_post_link('%link 下一个页面&raquo;') ?></div>
</div>
</div><!-- pshow -->

	<?php comments_template(); ?>

<?php } //END 非`商品页面 
 ?> 
<?php endwhile; else: ?>
		<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>

<!-- 最新商品 -->
<div class="dp" style="margin: 10px 0pt 0pt;">
<div class="dptitle">
	<div class="left"><strong>最新商品</strong></div>
	<div class="right"><a href="<?php echo WP_SITEURL; ?>/category/cornucopia/">更多最新商品</a></div>
</div>

<div class="v7show"><div class="v7all"><ul>
<?php query_posts('showposts=20&cat=20');
	$i = 0;
	while (have_posts()) : 
		the_post(); 
		if($i%5 == 0 and $i != 0 )
			echo "&nbsp;<br />";
		?>
		<li><span>·</span><a href="<?php the_permalink() ?>" rel="bookmark" target="_blank" title="<?php the_title(); ?>" ><?php the_title(); ?></a></li>
<?php $i++; endwhile; ?>

</ul></div></div>
</div><!-- .dp  最新商品 -->

</div><!-- .bodyleft 665px -->
<?php get_sidebar(); ?>
</div><!-- .v2all -->
<?php include (TEMPLATEPATH . '/footer2.php'); ?>